package org.jdsm.gae.komarichyn.admin;

import com.opensymphony.xwork2.ActionSupport;
import org.jdsm.flow.contact.IContactFeedBack;
import org.jdsm.flow.contact.IContactService;

import javax.annotation.Resource;

/**
 * User: mikom
 * Date: 2/4/13
 * Time: 3:59 PM
 */
public class AdminAction extends ActionSupport {


    @Resource
    private IContactService contactService;
    @Resource(name = "feedBack")
    private IContactFeedBack feedBack;

    public String sendFeedBack() throws Exception {
        feedBack.setEmail("Michael.Komarichin@gmail.com");
        contactService.saveFeedBack(feedBack);
        return SUCCESS;
    }

    public IContactFeedBack getFeedBack() {
        return feedBack;
    }

    public void setFeedBack(IContactFeedBack feedBack) {
        this.feedBack = feedBack;
    }
}
